<?php

defined('ACC') || exit('Access Denied');

define('ROOT', str_replace('includes/init.php', '', str_replace('\\', '/', __FILE__)));

require(ROOT . 'includes/smarty_inc.php');
require(ROOT . 'includes/common.php');
require(ROOT . 'includes/Absdb.class.php');
require(ROOT . 'includes/Mysql.class.php');
require(ROOT . 'includes/Conf.class.php');
require(ROOT . 'includes/Log.class.php');
require(ROOT . 'includes/Model.class.php');

function __autoload($className){
	require(ROOT . 'model/' . $className . '.class.php');
}

/* 对用户传入的变量进行转义操作 */
if(!get_magic_quotes_gpc()){
	if(!empty($_GET)){
		$_GET = addslash($_GET);
	}
	if(!empty($_POST)){
		$_POST = addslash($_POST);
	}
	$_COOKIE = addslash($_COOKIE);
	$_REQUEST = addslash($_REQUEST);
}

session_start();

?>